//
//  SEGNeighbourhoodListViewModel.h
//  Commom
//
//  Created by 梁学彰 on 2020/6/16.
//

#import <Foundation/Foundation.h>
#import "SEGSharedNewManager.h"
#import "SEGHelpManager.h"
#import "SEGSHManager.h"
#import "SEGCommunitySocialManager.h"


@interface SEGNeighbourhoodListViewModel : NSObject
/**
 是否为tab菜单界面
 */
@property (nonatomic, assign) BOOL isTabbar;

@property (nonatomic, copy) NSString* objId;
@property (nonatomic, copy) NSString* objType;

/**
 穿越/刷新提示
 */
@property (nonatomic, copy) NSString *refreshTips;

/**
 范围 1：本社区 3：全平台(默认全平台)
 */
@property (nonatomic, copy) NSString *scopeType;
/**
 小区ID 默认为当前小区
 */
@property (nonatomic, strong)NSString *communityId;
/**
 网络请求管理对象
 */
@property (nonatomic, strong)SEGSharedNewManager *sharedNewManager;
@property (nonatomic, strong)SEGHelpManager *helpManager;
@property (nonatomic, strong)SEGSHManager *sHManager;
@property (nonatomic, strong)SEGCommunitySocialManager *socialManager;

/**
 当前选中的cell
 */

@property (nonatomic, strong) NSIndexPath* selectedIndexPath;


@property (nonatomic, assign) NSInteger selectChildIndex;


@property (nonatomic, copy) NSString *commentContent;
/**
 是否对子评论评论
 */
@property (nonatomic, assign) BOOL isCommentToChild;

/// 每日精选推荐的index 默认是1
@property (nonatomic, assign)NSUInteger recommendIndex;

/**
 页码
 */
@property (nonatomic, assign) NSUInteger pageNo;
/**
 上一次的最后数据条数
 */
@property (nonatomic, assign) NSInteger lastSectionIndex;
/**
 cell高度缓存
 */
@property (nonatomic, strong)NSMutableDictionary *cellHightDict;
/// 统计腾讯广告渲染成功的次数
@property (nonatomic, assign) NSInteger tencentAdRenderCount;
/// 腾讯广告渲染完成的个数
@property (nonatomic, assign) NSInteger tencentAdRenderFinishCount;
/// 腾讯广告渲染完成
@property (nonatomic, assign) BOOL tencentAdRenderFinish;

@property (nonatomic, strong) RACCommand *listDataCommand;

@property (nonatomic, strong) RACCommand *cancelPraiseCommand;//取消点赞
@property (nonatomic, strong) RACCommand *praiseCommand;//点赞
@property (nonatomic, strong) RACCommand *allQueryCommenCommand;
@property (nonatomic, strong) RACCommand *deleteCommentCommand;
@property (nonatomic, strong) RACCommand *saveQuizAnswerCommand;//回复主体
@property (nonatomic, strong) RACCommand *commentToChildCommentCommand;//回复子评论
@property (nonatomic, strong) RACCommand *deleteActionWithNeihborhoodInfoModelCommand;


-(void)requestPublishList;

@end

